package com.ziyucoding.springboot.labs.lab3.sca.rocketmqdemo.dtd.order.service.impl;

import com.ziyucoding.springboot.labs.lab3.sca.rocketmqdemo.dtd.order.mapper.TransactionLogMapper;
import com.ziyucoding.springboot.labs.lab3.sca.rocketmqdemo.dtd.order.service.TransactionLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 事务日志服务
 *
 * @author ziyucoding
 * @date 2023-04-02
 **/
@Service
public class TransactionLogServiceImpl implements TransactionLogService {

    @Autowired
    private TransactionLogMapper transactionLogMapper;

    @Override
    public Long count(String transactionId) {
        return transactionLogMapper.selectCountById(transactionId);
    }
}
